class BannerItem {
  final int id;
  final String imgUrl;
  final String? linkUrl;
  final String type;

  BannerItem({
    required this.id,
    required this.imgUrl,
    required this.linkUrl,
    required this.type,
  });

  factory BannerItem.fromJson(Map<String, dynamic> json) {
    return BannerItem(
      id: json['id'] ?? '', 
      imgUrl: json['imgUrl'] ?? '',
      linkUrl: json['linkUrl'] ?? '',
      type: json['type'] ?? 0,
    );
  }
}